<?php

!defined('M_COM') && exit('No Permission');
global $cotypes;
load_cache('cotypes');
foreach($cotypes as $k => $v){
	if($v['emode']){
		$na = stidsarr(1);
		foreach($na as $kk => $v) $db->query("UPDATE {$tblprefix}".atbl($kk,1)." SET ccid$k=0,ccid{$k}date=0 WHERE ccid{$k}date<>0 AND ccid{$k}date<'$timestamp'");		
	}
}
?>